#pragma once
#include "../MsgDefine.h"

// 客户端消息的实现
void CustomFunc(CUSTOM_TEST)(IGame* pScene, UI32 self, UI32 msgId, CMsgTyped* pmsg)
{
    // 客户端发送了一个字符串
    const char* content = pmsg->StringVal();

    // 回复一个字符串
    CMsgTyped msg;
    msg.SetString( content );
    pScene->Custom(self, msgId, &msg);
}
